package com.atguigu.gmall.item.vo;

import com.atguigu.gmall.pms.entity.CategoryEntity;
import com.atguigu.gmall.pms.entity.SkuImagesEntity;
import com.atguigu.gmall.pms.vo.ItemGroupVo;
import com.atguigu.gmall.pms.vo.SaleAttrValueVo;
import com.atguigu.sms.vo.ItemSaleVo;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * @description:
 * @author: xie.zh
 * @create: 2021.03.24   18:37
 * @version: 1.0
 */
@Data
public class ItemVo {
    //面包屑：1.2.3级分类
    private List<CategoryEntity> categories;
    //面包屑：品牌信息
    private Long brandId;
    private String brandName;
    //面包屑：spu信息
    private Long spuId;
    private String spuName;
    //sku相关信息
    private Long skuId;
    private String title;
    private String subTitle;
    private BigDecimal price;
    private Integer weight;
    private String defaultImage;
    //商品的营销信息
    private List<ItemSaleVo> sales;
    //是否有货
    private Boolean store = false;
    //图片列表
    private List<SkuImagesEntity> images;
    //销售属性列表:[{attrId:3,attrName:颜色,attrValues:['黑色','白色']}]
    private List<SaleAttrValueVo> saleAttrs;
    //当前商品销售属性{3:'黑色',4:'8G',5:'128G'}
    private Map<Long, String> saleAttr;
    //销售属性组合和skuId的映射关系:['黑色,8G,128G':10,'黑色,12G,256G':11]
    private Map<String, Object> skuJsons;

    //商品描述
    private List<String> spuImages;

    //规格参数
    private List<ItemGroupVo> groups;
}
